hackerrank compress the string

visit shbcf.ru